// ui/admin-ui/src/api/permission.js
import service from '@/utils/request.js'
export default {
    selectPermissionTree(){ return service.get('/permission/selectPermissionTree') },
    deleteById(id){ return service.delete(`/permission/deleteById/${id}`) },
    add(data){ return service.post('/permission/add', data) },
    selectById(id){ return service.get(`/permission/selectById/${id}`) },
    update(data){ return service.put('/permission/update', data) }
}